Copying and pasting method, data processing apparatus, and user equipment

ABSTRACT

A copying and pasting method includes: obtaining a first to-be-recognized fingerprint; selecting, if the first to-be-recognized fingerprint is a first preset fingerprint, copied content from a to-be-processed interface based on a touch operation acting on a touchscreen; obtaining a pasting instruction; and pasting the copied content into a target area according to the pasting instruction. This application further provides a data processing apparatus and user equipment that may implement the foregoing method. This application can improve copying and pasting efficiency.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.16/834,659, filed on Mar. 30, 2020, which is a continuation ofInternational Application No. PCT/CN2018/108621, filed on Sep. 29, 2018,which claims priority to Chinese Patent 201711071730.0, filed on Nov. 3,2017 and priority to Chinese Patent 201710923598.5, filed on Sep. 30,2017. All of the afore-mentioned patent applications are herebyincorporated by reference in their entireties.

TECHNICAL FIELD

This application relates to the field of computer technologies, and inparticular, to a copying and pasting method, a data processingapparatus, and user equipment.

BACKGROUND

A copying and pasting operation is one of operations usually performedon user equipment, and a user usually needs to copy, in informationcontent such as literature, news, or instant messaging, a part that theuser requires, and paste the copied part to an application such asnote/memo, chat, or agenda.

In the prior art, a copying and pasting operation method is roughly asfollows:

During copying, touch and hold is first performed on an applicationinterface, to invoke an operation menu, where the operation menuincludes options such as “copying”, “word sharing”, and “search” (asshown in FIG. 1), and then information head and tail identifiers aredragged, to determine a copying range; and the “copying” option istapped. During pasting, the user first switches to an application onwhich pasting is to be performed, such as “Evernote”, performs touch andhold on a location at which information is to be inserted, to invoke anoperation menu, and then taps “past”, to paste copied content to theinsertion location, as shown in FIG. 2. When there is a relatively largeamount of copied content, for example, copied content spans a pluralityof screen-length pages, the user needs to slide pages downward aplurality of times, and slide an information tail identifier downward aplurality of times. As shown in FIG. 3, the user first drags aninformation tail identifier to a location of “bing xing” on a currentpage, then operates “downward page slide” to view a next page (as shownin FIG. 4), then slides the information tail identifier downward, anddrags the information tail identifier to a location of “bei xuan” on thecurrent page (as shown in FIG. 5), thereby completing content copying ofa plurality of pages. During the operation, if another location on thepage is tapped through a misoperation, the copied content is canceled,and the user needs to re-find the location at which the informationbegins (a location of “ri fa bu gong gao” shown in FIG. 3) and operateonce again.

It can be learned from the foregoing that, the existing copying andpasting operation includes many steps, and has quite low efficiency.When there is a relatively large amount of copied content, andcross-page copying is performed, the user needs to perform the slideoperation a plurality of times and drag the copy tail identifier aplurality of times. Consequently, operations are quite inconvenient, anduser experience is poor.

SUMMARY

This application provides a copying and pasting method, to improvecopying and pasting efficiency.

A first aspect provides a copying and pasting method, including:obtaining a first to-be-recognized fingerprint; selecting, if the firstto-be-recognized fingerprint is a first preset fingerprint, copiedcontent from a to-be-processed interface based on a touch operationacting on a touchscreen; obtaining a pasting instruction; and pastingthe copied content into a target area according to the pastinginstruction. The target area is a pastable area. Based on thisimplementation, if the obtained first to-be-recognized fingerprint isthe first preset fingerprint, a copying function may be directlytriggered through a fingerprint, an operation menu does not need to beinvoked, and a function option of “copying” does not need to be selectedeither. Therefore, operation steps during copying and pasting can bereduced, thereby improving copying and pasting efficiency.

In a possible implementation, the obtaining a first to-be-recognizedfingerprint specifically includes: obtaining, by using a fingerprintsensor when a touch operation acting on the touchscreen is detected, afingerprint used for the touch operation; and using the fingerprint usedfor the touch operation as the first to-be-recognized fingerprint. Basedon this implementation, when a finger is in contact with the screen, thefingerprint sensor is awakened, and the copying function may betriggered during screen touch, thereby not only improving copying andpasting efficiency, but also having good user experience.

In another possible implementation, the obtaining a firstto-be-recognized fingerprint specifically includes: detecting a touchoperation acting on the touchscreen; awakening a fingerprint sensor whenan operation area of the touch operation is an interface of a presetapplication program run on a foreground; and obtaining, by using thefingerprint sensor, a fingerprint used for the touch operation, andusing the fingerprint used for the touch operation as the firstto-be-recognized fingerprint. The preset application program is anapplication program having a copyable object, for example, a documentapplication, an SMS message, or a web page. Based on thisimplementation, the copying function is triggered only when a usertouches the interface of the preset application program that is beingrun on the foreground. In this way, not only start of the fingerprintsensor can be prevented when the application program is not run, butalso trigger of the copying function can be prevented when the userplays a game or watches a video, thereby satisfying an effectiverequirement of the user.

In another possible implementation, the fingerprint sensor is disposedbelow the touchscreen. In this way, while the user performs a touchoperation on the touchscreen, the fingerprint sensor can detect afingerprint used for the touch operation. Further, a fingerprintdetection area of the fingerprint sensor is not less than a screen areaof the touchscreen. In this way, while the user performs a touchoperation on any location on the touchscreen, the fingerprint sensor candetect a fingerprint used for the touch operation. Furthermore, thefingerprint sensor may be disposed below a display panel, so as not toaffect displaying of the display panel.

In another possible implementation, the selecting copied content from ato-be-processed interface based on a touch operation acting on atouchscreen specifically includes: selecting the copied content from theto-be-processed interface based on a touch track of the touch operationon the touchscreen. The touch track is a slide track of a finger on thescreen. Based on this implementation, a touch track within a period oftime may be recorded, and the copied content is selected based on thetouch track, thereby increasing content copying means.

In another possible implementation, the selecting the copied contentfrom the to-be-processed interface based on a touch track of the touchoperation on the touchscreen specifically includes: using textinformation as the copied content when content corresponding to thetouch track includes the text information. Based on this implementation,when a finger slides to select a piece of text information, the selectedtext information may be used as the copied content. In this way,selected content may be directly used as the copied content, havingadvantages of speediness and convenience.

In another possible implementation, the selecting the copied contentfrom the to-be-processed interface based on a touch track of the touchoperation on the touchscreen specifically includes: displaying, whencontent corresponding to the touch track includes text information, anoption of converting a text into a picture; and converting the textinformation into a picture when the option of converting a text into apicture is selected, and using the picture as the copied content. Thisimplementation provides a function of converting selected textinformation into a picture, thereby increasing an application range ofcopying and pasting.

In another possible implementation, the selecting the copied contentfrom the to-be-processed interface based on a touch track of the touchoperation on the touchscreen specifically includes: using, when thetouch track forms a closed area and the closed area includes a picture,the picture in the closed area as the copied content. Thisimplementation provides a method for selecting a picture in a closedarea as the copied content, thereby increasing content copying means.

In another possible implementation, the selecting copied content from ato-be-processed interface based on a touch operation acting on atouchscreen specifically includes: using, when content corresponding toa touch location is a multimedia file, the multimedia file as the copiedcontent. Based on this implementation, the multimedia file may bequickly copied.

In another possible implementation, the selecting copied content from ato-be-processed interface based on a touch operation acting on atouchscreen specifically includes: determining a touch location of thetouch operation on the touchscreen; and using, when contentcorresponding to the touch location is a thumbnail, an original picturecorresponding to the thumbnail as the copied content. Based on thisimplementation, the original picture of the thumbnail may be used as thecopied content, thereby increasing an application range of copying andpasting.

In another possible implementation, the pasting the copied content intoa target area according to the pasting instruction specificallyincludes: using a touch location of one more touch operation on thetouchscreen as one more touch location; and pasting, according to thepasting instruction, the copied content after content corresponding tothe one more touch location. Based on this implementation, after thecopied content is selected based on the touch operation, the copiedcontent may be pasted to a designated location. For example, if thedesignated location is between two words, the copied content is insertedbetween the two words.

In another possible implementation, the pasting the copied content intoa target area according to the pasting instruction specificallyincludes: pasting, when the target area is an image editing area, thecopied content to a layer located on the top of the image editing area.Based on this implementation, the copied content such as a word or apicture may be pasted into the image editing area, thereby increasing anapplication range of pasting.

In another possible implementation, after the pasting the copied contentinto a target area according to the pasting instruction, when the targetarea is a dialog box of a communication application program, the copiedcontent is used as to-be-sent content. Based on this implementation,when the target area is the dialog box of the communication applicationprogram, the copied content may be directly sent to a receiving party.This saves steps of tapping and sending by a sending party, and providesa method for quickly sending the copied content.

In another possible implementation, the selecting copied content from ato-be-processed interface based on a touch operation acting on atouchscreen specifically includes: selecting, when the touch operationincludes a first tapping operation and a second tapping operation, afirst tapping location from an area in which the first tapping operationis in contact with the touchscreen, where the first to-be-recognizedfingerprint is a fingerprint used for the first tapping operation;obtaining the second tapping operation after it is detected that thefirst tapping operation ends; selecting, when a fingerprint used for thesecond tapping operation is the first preset fingerprint, a secondtapping location from an area in which the second tapping operation isin contact with the touchscreen; and selecting, if content correspondingto the first tapping location and content corresponding to the secondtapping location both belong to the to-be-processed interface, thecopied content from the to-be-processed interface based on the firsttapping location and the second tapping location. Based on thisimplementation, if a fingerprint used for a tapping operation is thefirst preset fingerprint, the copied content may be selected through twotapping operations, thereby increasing content copying means.

Further, after the first tapping location and the second tappinglocation are obtained, if the content corresponding to the first tappinglocation and the content corresponding to the second tapping locationboth belong to a non-pastable area in the to-be-processed interface, thecopied content is selected from the non-pastable area based on the firsttapping location and the second tapping location. Based on thisimplementation, if a fingerprint used for a tapping operation is thefirst preset fingerprint, the copied content is selected from thenon-pastable area through two tapping operations, and pasted in apastable area through a touch operation.

In another possible implementation, the selecting the copied contentfrom the to-be-processed interface based on the first tapping locationand the second tapping location specifically includes: using textinformation corresponding to the first tapping location as a startpoint, using text information corresponding to the second tappinglocation as an end point, and selecting text information from the startpoint to the end point as the copied content. Based on thisimplementation, text information may be selected in a cross-page manner,and text information of a plurality of pages is used as the copiedcontent, thereby providing a method for quickly selecting a largeparagraph of text.

In another possible implementation, the selecting the copied contentfrom the to-be-processed interface based on the first tapping locationand the second tapping location specifically includes: generating, basedon interface coordinates corresponding to the first tapping location andinterface coordinates corresponding to the second tapping location, ascreenshot area in the to-be-processed interface according to a presetarea generation rule, and using a pattern in the screenshot area as thecopied content. This implementation provides a feasible solution forselecting a pattern in a screenshot area through two tapping operationsand using the selected pattern as the copied content, thereby increasinguse scenarios of copying and pasting.

In another possible implementation, the selecting copied content from ato-be-processed interface based on a touch operation acting on atouchscreen specifically includes: using, when the touch operationincludes a plurality of slide operations and the plurality of slideoperations act on the to-be-processed interface, content correspondingto the plurality of slide operations as the copied content. Based onthis implementation, if a fingerprint used for the touch operation isthe first preset fingerprint, the copied content is selected through aplurality of slide operations, thereby increasing content copying means.

In another possible implementation, the obtaining a pasting instructionspecifically includes: detecting, after the touch operation ends, onemore touch operation acting on the target area; displaying, when a timelength for which the one more touch operation has been in contact withthe touchscreen reaches a preset time length, an operation menuincluding a pasting option; and obtaining the pasting instruction whenthe pasting option is selected. Based on this implementation, after thecopied content is quickly selected by using a fingerprint, a method forimplementing a pasting function is provided.

In another possible implementation, the obtaining a pasting instructionspecifically includes: detecting, after the touch operation ends, onemore touch operation acting on the target area; and obtaining thepasting instruction when a fingerprint used for the one more touchoperation is a second preset fingerprint. Based on this implementation,after the copied content is quickly selected by using the first presetfingerprint, the copied content may be pasted into the target area byusing the second preset fingerprint, having advantages of speediness andconvenience.

In another possible implementation, after the selecting copied contentfrom a to-be-processed interface based on a touch operation acting on atouchscreen, when a slide operation is detected in a non-pastable areaof the to-be-processed interface, the copied content is cleared. Theto-be-processed interface includes the pastable area and thenon-pastable area. Based on this implementation, when the copied contentdoes not satisfy a user requirement, the copied content may be quicklycleared by sliding in the non-pastable area, having advantages ofconvenience and speediness.

In another possible implementation, after the selecting copied contentfrom a to-be-processed interface based on a touch operation acting on atouchscreen, when it is detected that a speed at which a touch objectmoves to a side of the screen is greater than a preset speed, the copiedcontent is cleared. Based on this implementation, when a finger quicklyslides to an edge of the screen, the copied content may be cleared,thereby implementing a function of clearing the copied content.

In another possible implementation, after the selecting copied contentfrom a to-be-processed interface based on a touch operation acting on atouchscreen, when a double-tapping operation acting on an editable areaof the to-be-processed interface is detected, the copied content iscleared. The double-tapping operation is an operation of performingtapping twice within a specified time. A time length of the specifiedtime is relatively small, for example, 0.5 second or 1 second. Based onthis implementation, when the editable area is double-tapped, the copiedcontent may be cleared, thereby implementing a function of clearing thecopied content.

A second aspect provides a copying and pasting method. The methodincludes: selecting content based on a first touch operation acting on atouchscreen, displaying a copying option, and using the selected contentas copied content when the copying option is selected; and pasting thecopied content into a target area when a second touch operation actingon the target area is detected and a fingerprint used for the secondtouch operation is a preset fingerprint. A fingerprint used for thefirst touch operation is not the preset fingerprint, and the target areais a pastable area. For example, a fingerprint of a finger A is thepreset fingerprint, a fingerprint of a finger B is not the presetfingerprint, a menu including the copying option may be invoked by usingthe finger B, to perform a copying function, a pasting function may bedirectly performed by using the finger A, and a menu including a pastingoption does not need to be invoked, thereby saving steps during pastingand improving pasting efficiency. Moreover, the pasting function can beperformed by using only the preset fingerprint, and the pasting functioncannot be performed by using another fingerprint, thereby avoiding amisoperation.

In a possible implementation, before the copying option is selected, acancelation option is displayed after the content is selected based onthe first touch operation acting on the touchscreen; and the copiedcontent is cleared when the cancelation option is selected. Based onthis implementation, when a user incorrectly selects an object, theselected object may be canceled, thereby satisfying a user requirement.

In a possible implementation, the displaying a copying optionspecifically includes: awakening a fingerprint sensor when an operationarea of the first touch operation is an interface of a presetapplication run on a foreground; obtaining, by using the fingerprintsensor, the fingerprint used for the first touch operation; anddisplaying the copying option when the fingerprint used for the firsttouch operation is not the preset fingerprint. The preset applicationprogram is an application program having a copyable object, for example,a document application, an SMS message, or a web page. Based on thisimplementation, a content copying method is provided for a case in whicha fingerprint used for a touch operation is not the preset fingerprint.

In a possible implementation, the obtaining a fingerprint used for thesecond touch operation specifically includes: awakening the fingerprintsensor when the target area is the interface of the preset applicationrun on the foreground; and obtaining, by using the fingerprint sensor,the fingerprint used for the second touch operation. The presetapplication program is an application program having a copyable object,for example, a document application, an SMS message, or a web page. Onlywhen the preset application program that is being run is touched, thefingerprint sensor is awakened to obtain a fingerprint. In this way, notonly start of the fingerprint sensor can be prevented when theapplication program is not run, but also trigger of the copying functioncan be prevented when the user plays a game or watches a video, therebysatisfying an effective requirement of the user.

A third aspect provides a data processing apparatus, having a functionof implementing the copying and pasting method provided in the firstaspect. The function may be implemented by hardware, or may beimplemented by hardware by executing corresponding software. Thehardware or software includes one or more modules corresponding to theforegoing function. The module may be software and/or hardware.

A fourth aspect provides a data processing apparatus, having a functionof implementing the copying and pasting method provided in the secondaspect. The function may be implemented by hardware, or may beimplemented by hardware by executing corresponding software. Thehardware or software includes one or more modules corresponding to theforegoing function. The module may be software and/or hardware.

A fifth aspect provides user equipment, having a function ofimplementing the copying and pasting method provided in the firstaspect. The function may be implemented by hardware, or may beimplemented by hardware by executing corresponding software. Thehardware or software includes one or more modules corresponding to theforegoing function. The module may be software and/or hardware.

A sixth aspect provides user equipment, having a function ofimplementing the copying and pasting method provided in the secondaspect. The function may be implemented by hardware, or may beimplemented by hardware by executing corresponding software. Thehardware or software includes one or more modules corresponding to theforegoing function. The module may be software and/or hardware.

In the data processing apparatus and the user equipment in the third tothe sixth aspects, the hardware may be hardware such as a CPU, a memory,a touchscreen, or a fingerprint sensor, and the software may be asoftware program run on a CPU.

According to a seventh aspect, an embodiment of this applicationdiscloses an electronic device (for example, various electronic mobiledevices such as a mobile phone, a notebook computer, and a computer),the electronic device has a touchscreen-integrated fingerprint sensor orhas a conventional fingerprint sensor not integrated into a touchscreen,and the electronic device further includes a CPU and a memory, where thememory is configured to store a software instruction required forperforming the method according to the foregoing aspects and theimplementations of the aspects, and the CPU is configured to read thesoftware instruction and perform the method according to the foregoingaspects and the implementations of the aspects.

According to an eighth aspect, an embodiment of this applicationprovides another method for performing quick copying and/or quickpasting by using a fingerprint. In this embodiment, a fingerprint sensormay be not integrated together with an electronic device at delivery ofthe electronic device, that is, may be used as an accessory of theelectronic device. For example, the fingerprint sensor may beindividually made into an independent hardware device, and thenconnected to an existing electronic device (for example, a computer, anotebook computer, or a mobile phone) in a wireless or wired manner.Certainly, the fingerprint sensor may alternatively be integrated intosome existing peripherals (for example, a keyboard and a mouse).

In an example in which the fingerprint sensor is integrated into amouse, a user may perform quick copying and/or pasting by using themouse having the fingerprint sensor. For example, the fingerprint sensormay be disposed at a location of a left button of the mouse. When theuser presses and holds the left button, a fingerprint is recognized. Ifthe fingerprint is the same as a preset fingerprint, selected content iscopied (selection may still be performed in an existing manner ofpressing and holding the left button and moving the mouse), and then theleft button is released to complete copying. Pasting may also beperformed based on a fingerprint or in a regular manner. For details,refer to the foregoing embodiments. Details are not described hereinagain.

In this embodiment, even if the electronic device has no fingerprintsensor, quick copying and/or pasting may still be implemented through anexternal fingerprint sensor.

According to a ninth aspect, an embodiment of this application providesa computer readable storage medium. The computer readable storage mediumstores an instruction, and when the instruction is run on a computer,the computer is enabled to perform the method according to the foregoingaspects and the implementations of the aspects.

According to a tenth aspect, an embodiment of this application providesa computer program product including an instruction. When the computerprogram product is run on a computer, the computer is enabled to performthe method according to the foregoing aspects and the implementations ofthe aspects.

In each embodiment of this application, if the obtained firstto-be-recognized fingerprint is the first preset fingerprint, the copiedcontent may be selected from the to-be-processed interface based on thetouch operation acting on the touchscreen; and after the pastinginstruction is obtained, the copied content is pasted into the targetarea according to the pasting instruction. Based on this application,the copying function may be directly triggered through a fingerprint,the operation menu does not need to be invoked, and the function optionof “copying” does not need to be selected either. Therefore, it can belearned that, based on this application, the operation steps duringcopying and pasting are reduced, and the copying and pasting efficiencycan be improved.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic diagram of a copying operation in the prior art;

FIG. 2 is a schematic diagram of a pasting operation in the prior art;

FIG. 3 to FIG. 5 are schematic diagrams of cross-page copying andpasting in the prior art;

FIG. 6 is a schematic diagram of a mobile phone according to anembodiment of this application;

FIG. 7 is a schematic diagram of a copying and pasting method accordingto an embodiment of this application;

FIG. 8 is a schematic diagram of a correspondence between a fingerprintand a function according to an embodiment of this application;

FIG. 9 is a schematic diagram of copying content on a mail interfaceaccording to an embodiment of this application;

FIG. 10 is a schematic diagram of a target area according to anembodiment of this application;

FIG. 11 is a schematic diagram of pasting content into a target areaaccording to an embodiment of this application;

FIG. 12 is another schematic diagram of a copying operation according toan embodiment of this application;

FIG. 13 is a schematic diagram of selecting a picture in a closed areaas copied content according to an embodiment of this application;

FIG. 14 is another schematic diagram of selecting a picture in a closedarea as copied content according to an embodiment of this application;

FIG. 15 is another schematic diagram of pasting content into a targetarea according to an embodiment of this application;

FIG. 16 is a schematic diagram of a plurality of thumbnails according toan embodiment of this application;

FIG. 17 is a schematic diagram of copying a contact card according to anembodiment of this application;

FIG. 18 is another schematic diagram of a target area according to anembodiment of this application;

FIG. 19 is a schematic diagram of pasting a contact card into a targetarea according to an embodiment of this application;

FIG. 20 is a schematic diagram of copying a pattern according to anembodiment of this application;

FIG. 21 is a schematic diagram of an image editing interface accordingto an embodiment of this application;

FIG. 22 is another schematic diagram of pasting a pattern according toan embodiment of this application;

FIG. 23 is another schematic diagram of copying a picture according toan embodiment of this application;

FIG. 24 is another schematic diagram of a target area according to anembodiment of this application;

FIG. 25 is a schematic diagram of pasting a picture into a target areaaccording to an embodiment of this application;

FIG. 26 is another schematic diagram of a copying and pasting methodaccording to an embodiment of this application;

FIG. 27 is a schematic diagram of two touch locations according to anembodiment of this application;

FIG. 28 is another schematic diagram of copying a pattern according toan embodiment of this application;

FIG. 29 is a schematic diagram of selecting copied content through twotapping operations according to an embodiment of this application;

FIG. 30 is another schematic diagram of a target area according to anembodiment of this application;

FIG. 31 is another schematic diagram of pasting a pattern into a targetarea according to an embodiment of this application;

FIG. 32 is another schematic diagram of a copying and pasting methodaccording to an embodiment of this application;

FIG. 33 is a schematic diagram of selecting copied content through aplurality of touch operations according to an embodiment of thisapplication;

FIG. 34 is another schematic diagram of selecting copied content througha plurality of touch operations according to an embodiment of thisapplication;

FIG. 35 is another schematic diagram of pasting content into a targetarea according to an embodiment of this application;

FIG. 36 is a schematic diagram of a plurality of touch operationsaccording to an embodiment of this application;

FIG. 37 is another schematic diagram of selecting copied content througha plurality of touch operations according to an embodiment of thisapplication;

FIG. 38 shows another embodiment of a copying and pasting methodaccording to an embodiment of this application;

FIG. 39 shows another embodiment of a copying and pasting methodaccording to an embodiment of this application;

FIG. 40 shows another embodiment of a copying and pasting methodaccording to an embodiment of this application;

FIG. 41 shows another embodiment of a copying and pasting methodaccording to an embodiment of this application;

FIG. 42 shows an embodiment of a data processing apparatus according toan embodiment of this application;

FIG. 43 shows another embodiment of a data processing apparatusaccording to an embodiment of this application; and

FIG. 44 shows another embodiment of a data processing apparatusaccording to an embodiment of this application.

DESCRIPTION OF EMBODIMENTS

This application relates to a copying and pasting method on userequipment. The user equipment may include a mobile phone, a personaldigital assistant (personal digital assistant, PDA), a point of sales(point of sales, POS), a tablet computer, a notebook computer, asmartwatch, a smart TV, an in-vehicle computer, or the like.

Using an example in which the user equipment is a mobile phone, FIG. 6is a block diagram of a partial structure of a mobile phone 100 relatedto an embodiment of the present invention. Referring to FIG. 6, themobile phone 100 includes components such as a radio frequency (radiofrequency, RF) circuit 110, a memory 120, another input device 130, adisplay screen 139, a fingerprint sensor 150, an audio circuit 160, anI/O subsystem 170, a processor 180, and a power supply 190. Personsskilled in the art may understand that the structure of the mobile phoneshown in FIG. 6 does not constitute a limitation on the mobile phone,and the mobile phone may include more components or fewer componentsthan those shown in the figure, and some components may be combined,some components may be split, or a different component deployment may beused. Persons skilled in the art may understand that the display screen139 belongs to a user interface (UI, User Interface), and the mobilephone 100 may include more or fewer user interfaces than those shown inthe figure.

The following specifically describes the components of the mobile phone100 with reference to FIG. 6.

The RF circuit 110 may be configured to receive and send information orreceive and send a signal during a call. Particularly, the RF circuit110 receives downlink information from a base station, then delivers thedownlink information to the processor 180 for processing, andadditionally sends uplink-related data to the base station. Usually, theRF circuit includes, but is not limited to, an antenna, at least oneamplifier, a transceiver, a coupler, a low noise amplifier (Low NoiseAmplifier, LNA), a duplexer, and the like. In addition, the RF circuit110 may further communicate with a network and another device throughwireless communication. The wireless communication may use anycommunications standard or protocol that includes, but is not limitedto, global system for mobile communications (Global System of Mobilecommunication, GSM), general packet radio service (General Packet RadioService, GPRS), code division multiple access (Code Division MultipleAccess, CDMA), wideband code division multiple access (Wideband CodeDivision Multiple Access, WCDMA), long term evolution (Long TermEvolution, LTE), email, short messaging service (Short MessagingService, SMS), and the like.

The memory 120 may be configured to store a software program and amodule. The processor 180 executes various function applications of themobile phone 100 and performs data processing by running the softwareprogram and the module that are stored in the memory 120. The memory 120may mainly include a program storage area and a data storage area. Theprogram storage area may store an operating system, an applicationprogram required by at least one function (such as a sound playbackfunction and an image playback function), and the like. The data storagearea may store data (such as audio data and a phone book) created basedon use of the mobile phone 100, and the like. In addition, the memory120 may include a high speed random access memory, and may furtherinclude a non-volatile memory such as at least one magnetic disk storagedevice, a flash memory, or another volatile solid-state storage device.

The another input device 130 may be configured to receive input digit orcharacter information, and generate a key signal input related to usersetting and function control of the mobile phone 100. Specifically, theanother input device 130 may include, but is not limited to, one or moreof a physical keyboard, a functional key (for example, a volume controlkey or an on/off key), a trackball, a mouse, a joystick, or an opticalmouse (the optical mouse is a touch-sensitive surface that does notdisplay a visible output, or an extension of a touch-sensitive surfaceformed by a touchscreen). The another input device 130 is connected toanother input device controller 171 of the I/O subsystem 170, andperforms signal exchange with the processor 180 under the control of theanother input device controller 171.

The display screen 139 may be configured to display information enteredby a user or information provided to a user, and various menus of themobile phone 100, and may further receive a user input. Specifically,the display screen 139 may include a display panel 141 and a touch panel142. The display panel 141 may be configured in a form of a liquidcrystal display (Liquid Crystal Display, LCD), an organic light-emittingdiode (Organic Light-Emitting Diode, OLED), or the like. The touch panel142 is also referred to as a touchscreen, a touch-sensitive screen, orthe like, and may collect a contact or non-contact operation of a useron or near the touch panel 142 (such as an operation of a user on ornear the touch panel 142 by using any suitable object or accessory suchas a finger or a stylus, or a motion sensing operation may be included;and the operation includes a single-point control operation, amulti-point control operation, or another type of operation), and drivea corresponding connected apparatus based on a preset program.Optionally, the touch panel 142 may include two parts: a touch detectionapparatus and a touch controller. The touch detection apparatus detectsa touch position and a gesture of the user, detects a signal generatedby the touch operation, and transfers the signal to the touchcontroller. The touch controller receives touch information from thetouch detection apparatus, converts the touch information intoinformation that can be processed by the processor, and then sends theinformation to the processor 180, and can receive a command sent by theprocessor 180 and execute the command. In addition, the touch panel 142may be a resistive, capacitive, infrared, or surface acoustic wave typetouch panel, or the touch panel 142 may be implemented by using anytechnology of future development. Further, the touch panel 142 may coverthe display panel 141. The user may perform, based on content displayedon the display panel 141 (the displayed content includes, but is notlimited to, a soft keyboard, a virtual mouse, a virtual key, an icon,and the like), an operation on or near the touch panel 142 covering thedisplay panel 141. After detecting the operation on or near the touchpanel 142, the touch panel 142 transfers the operation to the processor180 through the I/O subsystem 170 to determine the user input.Subsequently, the processor 180 provides a corresponding visual outputon the display panel 141 through the I/O subsystem 170 based on the userinput. Although, in FIG. 6, the touch panel 142 and the display panel141 are used as two separate parts to implement input and outputfunctions of the mobile phone 100, in some embodiments, the touch panel142 and the display panel 141 may be integrated to implement the inputand output functions of the mobile phone 100.

The mobile phone 100 may further include at least one fingerprint sensor150 that can recognize a fingerprint of a finger of the user acting onthe fingerprint sensor 150.

A currently common fingerprint sensor separated from a screen may beused as the fingerprint sensor 150. The fingerprint sensor may be placedby opening a hole on a front side or back side of a screen. For example,for a series of mobile phones of Apple Incorporation such as iPhone 6and iPhone 7, a fingerprint is located on a front side, or for a seriesof mobile phones of Huawei such as Mate 8 and Mate 9, a fingerprint islocated on a back side.

In this application, the fingerprint sensor 150 may also be atouchscreen-integrated fingerprint sensor that recently emerges and iscontinuously being researched and improved. Different from aconventional capacitive fingerprint sensor for which a hole is opened ona front panel or a back panel of a mobile phone, thetouchscreen-integrated fingerprint sensor may complete fingerprint checkwhile a user touches a screen. Full-screen fingerprint recognition maybe implemented through the touchscreen-integrated fingerprint sensor. Tobe specific, regardless of a location on the screen on which afingerprint is pressed, the fingerprint can be detected.

Specifically, a capacitive fingerprint recognition sensor (for example,a chip) may be placed under the touch panel by drilling a blind via onthe back of a front glass cover plate, to implement hidden fingerprintrecognition; the fingerprint sensor may be placed under an entire glasspanel of the mobile phone; or the fingerprint sensor is integrated intothe display screen.

In this application, the display screen usually includes a glass panel,a touch panel, and a display panel from top to bottom, where an area ofthe touch panel is essentially the same as that of the display panel. Inthis way, a touch operation may be performed in any display area. Thefingerprint recognition sensor may be specifically located under thedisplay panel because a light transmittance of the existing fingerprintrecognition sensor usually cannot be made quite high. Therefore, if thefingerprint recognition sensor is placed on the display panel,displaying of the display panel is affected. Certainly, after atechnology for the fingerprint recognition sensor is continuouslyimproved subsequently, when displaying of the display panel may be notaffected, the fingerprint recognition sensor may be placed on eachlocation on the display panel.

When the fingerprint sensor is disposed under the display panel, afingerprint detection area of the fingerprint sensor may be set to benot less than a display screen area of the device. In this way, whilethe user performs a touch operation on any location on the displayscreen, the fingerprint sensor can detect a fingerprint used for thetouch operation.

The touchscreen-integrated fingerprint sensor may operate in an opticalmanner. For example, a main operating principle of an optical-basedfingerprint sensor is to irradiate a finger by using a light source in amobile phone, and then receive reflected light to recognize afingerprint. In another embodiment, a sensor having a fingerprintrecognition function may be further added to the sensor in a lightemitting layer in the display panel of the display screen, to form“interactive pixels”. To be specific, fingerprint recognition pixels(including near-infrared transmission and receiving) are added besideeach conventional RGB pixel.

In another embodiment, an ultrasonic wave fingerprint sensor may also beintegrated into the mobile phone, and a fingerprint of the user may berecognized when a finger points to the ultrasonic wave fingerprintsensor. Implementation of various touchscreen-integrated fingerprintsensors is the prior art, and details are not described in thisapplication.

The audio circuit 160, a speaker 161, and a microphone 162 may providean audio interface between the user and the mobile phone 100. The audiocircuit 160 may convert received audio data into a signal and transmitthe signal to the speaker 161. The speaker 161 converts the signal intoa sound signal to be output. Further, the microphone 162 converts acollected sound signal into a signal. The audio circuit 160 receives thesignal and converts the signal into audio data, and then outputs theaudio data to the RF circuit 110 to send the audio data to, for example,another mobile phone, or outputs the audio data to the memory 120 forfurther processing.

The I/O subsystem 170 is configured to control input and outputperipheral devices, and may include the another input device controller171, a fingerprint sensor controller 172, and a display controller 173.Optionally, one or more another input device controllers 171 receive asignal from the another input device 130 and/or send a signal to theanother input device 130. The another input device 130 may include aphysical button (a pressing button, a rocker button, or the like), adial pad, a slider switch, a joystick, a click scroll wheel, or anoptical mouse (the optical mouse is a touch-sensitive surface that doesnot display a visible output, or an extension of a touch-sensitivesurface formed by a touchscreen). It should be noted that, the anotherinput device controller 171 may be connected to any one or more of theforegoing devices. The display controller 173 of the I/O subsystem 170receives a signal from the display screen 139 and/or sends a signal tothe display screen 139. After the display screen 139 detects the userinput, the display controller 173 converts the detected user input intointeraction with a user interface object displayed on the display screen139. In this way, man-machine interaction is implemented. The sensorcontroller 172 may receive a signal from one or more fingerprint sensors150 and/or send a signal to one or more fingerprint sensors 150.

The processor 180 (which may also be considered as an SoC,system-on-a-chip) is a control center of the mobile phone 100, isconnected to parts of the entire mobile phone by using variousinterfaces and lines, and performs various functions of the mobile phone100 and processes data by running or executing the software programand/or the module stored in the memory 120, invoking data stored in thememory 120, and running software. Optionally, the processor 180 mayinclude one or more processing units. An application processor and amodem processor may be integrated into the processor 180. Theapplication processor mainly processes an operating system, a userinterface, an application program, and the like. The modem processormainly processes wireless communication. It may be understood that theforegoing modem processor may alternatively be not integrated into theprocessor 180. Common processors are, for example, processors ofQualcomm Snapdragon series and processors of Huawei HiSilicon Kirinseries.

Software run on the processor may include a BIOS/EFI program, anoperating system, application software, various types of driver softwareintegrated into an operating system or installed through a third party,and the like.

The mobile phone 100 further includes the power supply 190 (such as abattery) supplying power to the components. Preferably, the power supplymay be logically connected to the processor 180 through a powermanagement system, to implement functions such as management ofcharging, discharging, and power consumption through the powermanagement system.

Although not shown, the mobile phone 100 may further include other typesof sensors such as an optical sensor, a motion sensor, and anothersensor. Specifically, the optical sensor may include an ambient lightsensor and a proximity sensor. The ambient light sensor may adjustluminance of the display panel 141 based on brightness of ambient light.The proximity sensor may switch off the display panel 141 and/orbacklight when the mobile phone 100 is moved to an ear. As one type ofmotion sensor, an acceleration sensor may detect magnitude ofaccelerations in various directions (usually on three axes), may detectmagnitude and a direction of gravity when static, and may be applied toa mobile phone posture recognition application (such as switchingbetween a landscape mode and a portrait mode, a related game, andmagnetometer posture calibration), a function related to vibrationrecognition (such as a pedometer and a knock), and the like. Othersensors such as a gyroscope, a barometer, a hygrometer, a thermometer,and an infrared sensor may be further configured in the mobile phone100. Moreover, the mobile phone 100 may further include a camera, aBluetooth module, and the like.

The memory may store a plurality of application programs such as a wordprocessing application program, a telephone application program, anemail application program, an instant messaging application program, aphotograph management application program, a network browsingapplication program, a digital music player application program and/or adigital video player application program, and the like.

By invoking the program stored in the memory 120, the processor 180 mayperform a method according to each embodiment of this application.

Referring to FIG. 7, an embodiment of a copying and pasting methodprovided in this application includes the following steps.

Step 701. Obtain a first to-be-recognized fingerprint.

In an embodiment, user equipment is equipped with a full-screenfingerprint sensor, and the fingerprint sensor may detect a fingerprintacting on any point on a touchscreen.

In an optional embodiment, step 701 is specifically: obtaining, by usinga fingerprint sensor when a touch operation acting on the touchscreen isdetected, a fingerprint used for the touch operation; and using thefingerprint used for the touch operation as the first to-be-recognizedfingerprint. Specifically, when the fingerprint sensor is a capacitivefingerprint sensor, in a process of performing a touch operation on thetouchscreen, for example, when a finger begins to be in contact with thetouchscreen, a finger slides on the touchscreen, or a finger stopssliding, the capacitive fingerprint sensor may detect a fingerprint usedfor the touch operation. When the fingerprint sensor is an opticalfingerprint sensor, the optical fingerprint sensor may obtain an imageof a fingerprint through optical scanning, and then output the image toa processor. When the fingerprint sensor is an ultrasonic wave sensor, afingerprint may be detected in an ultrasonic wave manner.

It should be noted that, in this application, unless particularlystated, when “first” and “second” are used as modifiers (for example, afirst to-be-recognized fingerprint), “first” and “second” are used toonly differentiate between different modified terms, but do notrepresent other special meanings. Popularly speaking, “first” and“second” are equivalent to statements such as “a” and “another”.

In another optional embodiment, step 701 is specifically: detecting atouch operation acting on the touchscreen; awakening a fingerprintsensor when an operation area of the touch operation is an interface ofa preset application program run on a foreground (or in other words,“when an operation area of the touch operation corresponds to aninterface of a preset application program run on a foreground”. To bespecific, visually speaking, a user operates an interface of anapplication program run on the foreground. For example, the user tapssome controls such as a button and a scroll bar, flips a page throughsliding, or invokes a menu through touch and hold. Certainly, personsskilled in the art may understand that, actually, the user does not“directly” operate the interface. The user directly operates only thescreen, and various types of software and hardware subsequently performprocessing to visually present an effect of operating, by the user, theinterface of the application program. Specific implementation thereof isthe prior art, and details are not described in this application); andobtaining, by using the fingerprint sensor, a fingerprint used for thetouch operation, and using the fingerprint used for the touch operationas the first to-be-recognized fingerprint. The preset applicationprogram may be an application program having a copyable object, forexample, a document application such as Word or WPS, an SMS message, ora web page. A copying function is triggered only when the presetapplication program is run on the foreground and the user touches theinterface of this preset application program. In this way, trigger ofthe copying function can be prevented when the user runs someapplications (for example, playing a game, watching a video, or watchinga picture) on which trigger of the copying function is not desired,thereby reducing misoperations, and use of excessive resources can alsobe prevented, thereby reducing power consumption.

In another embodiment, even if a finger is not in contact with thescreen, fingerprint detection may be triggered (for example, detectionis performed in an ultrasonic wave manner, an optical manner, or anothermanner). For example, when the fingerprint sensor is an ultrasonic wavesensor, the ultrasonic wave fingerprint sensor emits an ultrasonic wave.If a finger of a user points to the touchscreen, and a distance betweenthe finger and the touchscreen falls within a detection range of theultrasonic wave fingerprint sensor, even if the finger does not touchthe touchscreen, the ultrasonic wave fingerprint sensor can performmulti-point scanning on the finger, to detect fingerprint-relatedinformation (for example, a distance from the fingerprint to thefingerprint sensor) and output the fingerprint-related information to aprocessor, so that the processor generates an image of the fingerprint.

In this application, the fingerprint sensor may also be in an operatingstate all the time, and when a finger is in contact with the screen, thefingerprint sensor may immediately detect a fingerprint. If thefingerprint sensor is in an operating state all the time, a detectedfingerprint may be sent in real time to the processor for processing; oronly when a finger touches the screen, the fingerprint sensor senses andsends a detected fingerprint to the processor for processing, to avoid alarge amount of useless interaction, save resources, and reduce powerconsumption.

Step 702. Select, if the first to-be-recognized fingerprint is a firstpreset fingerprint, copied content from a to-be-processed interfacebased on a touch operation acting on a touchscreen.

For details, refer to FIG. 8. FIG. 8 is a schematic diagram of acorrespondence between a fingerprint and a function. A user maypre-store a fingerprint A, a fingerprint B, a fingerprint C, and thelike in user equipment. The fingerprint A corresponds to a copyingfunction, and the fingerprint A may be specifically a fingerprint of anyfinger. A fingerprint corresponding to each of copying, screenunlocking, and application lock access may be set in a user-definedmanner.

A touch operation acting on the touchscreen may be detected through thetouchscreen, and the processor selects content from the to-be-processedinterface based on the touch operation acting on the touchscreen. If thefirst to-be-recognized fingerprint is the first preset fingerprint, theselected content is stored into a memory (for example, internal memory)as the copied content. To be specific, the “selecting the copiedcontent” includes a process of “selecting content” and a process ofstoring “the selected content” into the memory as the copied content.

It may be understood that, a fingerprint of any one or more fingers maybe used as the first preset fingerprint. To be not confused with anoperation (for example, tapping) of a finger that is usually usedfrequently (for example, an index finger), a fingerprint of a fingerthat is usually used infrequently (for example, a middle finger or aring finger) may be used. If the first to-be-recognized fingerprint isnot the first preset fingerprint, content may be selected based on thetouch operation, but the selected content is not used as copied content.How to select, based on a touch operation, content as copied content isthe prior art, and details are not described in this application.Moreover, it may be understood that, this process is automaticallyperformed by a user terminal, and does not require participation of theuser, while a conventional copying manner requires that after selectingcontent, a user tap a “copying” option in a popped-up menu. Therefore,the operation in this application can increase a copying speed.

Step 703. Obtain a pasting instruction.

When a location selected by the touch operation belongs to a pastablearea, and it is detected that an object satisfies a pasting condition,the user equipment obtains the pasting instruction, where the detectedobject may be a touch operation, a touch time length, or a fingerprint.For example, during touch and hold, a menu including a “pasting” optionis displayed through cooperation between software and hardware of theuser equipment, and when the user taps “pasting”, a “pasting”instruction is generated inside software, is obtained subsequently byanother software module, and is correspondingly processed (for example,step 704 is performed).

Step 704. Paste the copied content into a target area according to thepasting instruction.

The target area is a pastable area, that is, an area in which the copiedcontent may be “pasted”, and a “pasting” form may be, but is not limitedto, based on various existing pasting manners, for example, pasting byperforming matching between source and target formats, pasting performedin an attachment form, and pasting performed in a word/picture form.Specifically, the pastable area may be an area in which information maybe input, for example, a text input area, an image editing area, or amultimedia insertion area.

In this embodiment, if the obtained first to-be-recognized fingerprintis the first preset fingerprint, the copied content may be selected fromthe to-be-processed interface based on the touch operation acting on thetouchscreen; and after the pasting instruction is obtained, the copiedcontent is pasted into the target area according to the pastinginstruction. Based on this application, the copying function may bedirectly triggered through a fingerprint, the operation menu does notneed to be invoked, and the function option of “copying” does not needto be selected either. Therefore, it can be learned that, based on thisapplication, the operation steps during copying and pasting are reduced,and the copying and pasting efficiency can be improved.

Based on the foregoing embodiments, during actual application, thisapplication provides a plurality of methods for selecting copiedcontent. For details, refer to the following embodiments.

In an optional embodiment, the selecting copied content from ato-be-processed interface based on a touch operation acting on atouchscreen specifically includes: selecting the copied content from theto-be-processed interface based on a touch track of the touch operationon the touchscreen.

In this embodiment, when the touch operation is a slide operation, theuser equipment may detect a touch track of the slide operation on thetouchscreen, select content based on the touch track, and use theselected content as the copied content. Using an example in which atouch object is a finger below, a method for selecting content based ona touch track is described in detail. Refer to the followingembodiments.

Further, optionally, the selecting the copied content from theto-be-processed interface based on a touch track of the touch operationon the touchscreen includes: using text information as the copiedcontent when content corresponding to the touch track includes the textinformation.

Specifically, the to-be-processed interface may be an applicationinterface including a text, a picture, or multimedia information, forexample, a document, a web page, a mail, an agenda, or a notepad. FIG. 9is a schematic diagram of copying content on a mail interface. If afirst preset fingerprint is a fingerprint A, when a finger slides on atouchscreen and a fingerprint of the finger used for the slide operationis the fingerprint A, user equipment may determine that wordscorresponding to a slide track are “Very quietly I take my leave”, use“Very quietly I take my leave” as copied content, and store the text ina memory 120 (for example, internal memory) in a character string form.Moreover, “Very quietly I take my leave” is displayed to be in aselected state. During pasting, refer to FIG. 10. FIG. 10 is a schematicdiagram of a notebook application program. When it is detected that theuser taps a text input area in the notebook application program by usinga fingerprint A, the user equipment may determine that an areacorresponding to the tapping operation is a pastable area and that afingerprint used for the tapping operation is the first presetfingerprint, and the user equipment reads the stored character string“As quietly as I came here” from the memory 120, and loads the characterstring to an insertion location in the text input area, and a displayeffect generated after pasting is completed is shown in FIG. 11.Optionally, when a finger slides from left to right, selected contentmay be increased in an order from left to right; or when a finger slidesfrom right to left, selected content may be canceled in an order fromright to left.

Further, optionally, the selecting the copied content from theto-be-processed interface based on a touch track of the touch operationon the touchscreen includes: displaying, when content corresponding tothe touch track includes text information, an option of converting atext into a picture; and converting the text information into a picturewhen the option of converting a text into a picture is selected, andusing the picture as the copied content.

Specifically, referring to FIG. 12, after a finger slides to select “Asquietly as I came here . . . sun”, user equipment may display an areaincluding the foregoing words, and display an option of converting atext into a picture. When a finger taps the option of “converting a textinto a picture”, the user equipment determines that the option of“converting a text into a picture” is selected, converts the selected“As quietly as I came here” into a picture, and uses the picture ascopied content. An operation menu provided by the user equipment mayfurther include options such as “editing” and “sharing”.

Further, optionally, the selecting the copied content from theto-be-processed interface based on a touch track of the touch operationon the touchscreen includes: using, when the touch track forms a closedarea and the closed area includes a picture, the picture in the closedarea as the copied content.

For details, refer to FIG. 13 and FIG. 14. FIG. 13 and FIG. 14 areschematic diagrams of selecting a picture in a closed area as copiedcontent. In FIG. 13, a touch track of a finger on a touchscreen is acircle, and a selected pattern is a smiling face pattern. In FIG. 14, atouch track of a finger on a touchscreen is a closed area in anirregular shape, and a selected pattern is a smiling face pattern. Whena touch operation acts on a pastable area, a selected pattern is pastedinto a target area, as shown in FIG. 15.

Additionally, a pattern corresponding to an entire closed area mayalternatively be used as copied content. When the closed area includesword information, an option of “converting a text into a picture” may bedisplayed. When a finger taps the option of “converting a text into apicture”, user equipment determines that the option of “converting atext into a picture” is selected, converts a word or a symbol in theclosed area into a picture, and uses the picture as copied content.Alternatively, text information included in the closed area may be usedas copied content.

In another optional embodiment, the selecting copied content from ato-be-processed interface based on a touch operation acting on atouchscreen includes: determining a touch location of the touchoperation on the touchscreen; and using, when content corresponding tothe touch location is a thumbnail, an original picture corresponding tothe thumbnail as the copied content.

For details, refer to FIG. 16. FIG. 16 is a schematic diagram of aplurality of thumbnails. The interface includes thumbnails of imagessuch as a smiling face, a heart, and a dual ring. When a finger taps athumbnail of an object that is a smiling face pattern, user equipmentmay use an original picture corresponding to the thumbnail as copiedcontent, and paste the original picture of the smiling face pattern intoan information input area when the copied content is pasted in anotebook application, as shown in FIG. 15. The user equipment mayalternatively use the thumbnail as the copied content. Additionally,when a tapped object is a dynamic picture, the user equipment mayalternatively use the dynamic picture as the copied content.

In another optional embodiment, the selecting copied content from ato-be-processed interface based on a touch operation acting on atouchscreen includes: determining a touch location of the touchoperation on the touchscreen; and using, when content corresponding tothe touch location is a multimedia file, the multimedia file as thecopied content.

Specifically, when an object tapped by a finger is a multimedia file(for example, a video file or an audio file), the user equipment maydetermine that content corresponding to the touch operation is a videofile or an audio file, and use the selected video file or audio file asthe copied content.

In another optional embodiment, the selecting copied content from ato-be-processed interface based on a touch operation acting on atouchscreen includes: determining a touch location of the touchoperation on the touchscreen; and using, when content corresponding tothe touch location is a contact card, the contact card as the copiedcontent.

Specifically, when a finger taps the contact card, or a finger taps apart of the contact card, the user equipment may determine that contentcorresponding to the touch operation is a contact card, and use thecontact card as the copied content. For example, FIG. 17 to FIG. 19 areschematic diagrams of copying and pasting a contact card. FIG. 17 is aschematic diagram of a plurality of official account contact cards. Anapplication interface shown in FIG. 17 includes a plurality of contactcards such as AA Bus, AiShang Flower, Tencent AI, and iRead. When“AiShang Flower” is tapped, the user equipment uses a contact card of“AiShang Flower” as copied content. When switching to a dialog input boxof a chat interface, as shown in FIG. 18, the user equipment sends thecontact card of “AiShang Flower” to a message receiving party (that is,Zhang San), as shown in FIG. 19.

Further, optionally, step 703 includes: detecting, after the touchoperation ends, one more touch operation acting on the target area;displaying, when a time length for which the one more touch operationhas been in contact with the touchscreen reaches a preset time length,an operation menu including a pasting option; and obtaining the pastinginstruction when the pasting option is selected. In this way, thecopying function may be implemented by using a fingerprint, and thepasting function may be implemented without using a fingerprint.

Further, optionally, step 703 includes: detecting, after the touchoperation ends, one more touch operation acting on the touchscreen; andobtaining the pasting instruction when a fingerprint used for the onemore touch operation is a second preset fingerprint. Pasting iscompleted subsequently according to the pasting instruction, and “thesecond preset fingerprint” may be referred to as a pasting fingerprintused for a pasting operation. In this embodiment, the first presetfingerprint corresponding to the copying operation may be the same asthe second preset fingerprint corresponding to the pasting operation.For example, the user performs a touch operation through an indexfinger, and performs one more touch operation through the index finger,and the user equipment may determine that the touch operation is thecopying operation, and determine that the one more touch operation isthe pasting operation. Alternatively, the first preset fingerprintcorresponding to the copying operation may be different from the secondpreset fingerprint corresponding to the pasting operation. For example,a touch operation corresponding to an index finger is the copyingoperation, and a touch operation corresponding to a middle finger is thepasting operation.

Further, optionally, step 704 includes: using a touch location of onemore touch operation on the touchscreen as one more touch location; andpasting, according to the pasting instruction, the copied content aftercontent corresponding to the one more touch location. Specifically,after a finger selects a target location (for example, a location of acursor displayed on a UI interface) in the target area, the userequipment reads copied content from the memory 120, and displays thecopied content starting from the target location in the target area.Optionally, the user equipment may paste the copied content to beginningof a line of the selected location.

Further, optionally, step 704 includes: pasting, when the target area isan image editing area, the copied content to a layer located on the topof the image editing area. For details, refer to FIG. 20, FIG. 21, andFIG. 22. As shown in FIG. 20, a smiling face pattern is selected on afirst application interface, and then switching to the secondapplication interface is performed. The second application interface isshown in FIG. 21, and includes a heart-shaped pattern, and then theselected smiling face pattern is pasted at interface coordinatescorresponding to a touch location, as shown in FIG. 22. In this case, alayer at which the smiling face image is located is on top of a layer atwhich the heart-shaped pattern is located.

Further, optionally, after step 704, the foregoing method furtherincludes: using the copied content as to-be-sent content when the targetarea is a dialog box of a communication application program.

Specifically, when a location selected by a finger belongs to a dialoginput box of an instant messaging tool, the user equipment may directlysend the copied content to a message receiving party. For example, referto FIG. 23 to FIG. 25. As shown in FIG. 23, on a first chat interface, ahouse picture is selected through a thumb, and if a fingerprint of thethumb is the first preset fingerprint, the user equipment uses the housepicture as the copied content. Then, when the thumb is used to act on adialog input box of a second chat interface (as shown in FIG. 24), theuser equipment uses the copied content (that is, the house picture) asto-be-sent content, and sends the house picture to Li Si, as shown inFIG. 25.

Further, optionally, after step 702, the foregoing method furtherincludes: clearing the copied content when a slide operation is detectedin a non-pastable area of the to-be-processed interface; clearing thecopied content when it is detected that a speed at which a touch objectmoves to a side of the screen is greater than a preset speed; orclearing the copied content when a double-tapping operation acting on aneditable area of the to-be-processed interface is detected.

In the foregoing embodiment, the non-pastable area is an area in theto-be-processed interface excluding the pastable area, for example, atoolbar or a navigation bar. The editable area is an area in whichcontent may be pasted, copied, or modified, for example, a text inputarea, an image editing area, or a web page content display area.

An action of clearing the copied content may be set in a user-definedmanner, for example, sliding in the toolbar, or touching and holding thescreen by using an index finger and then quickly moving to a side of thescreen, or double-tapping the editable area by using an index finger. Inthis case, when the foregoing operation is performed by using anotherfinger, the user equipment may not clear the copied content. It may beunderstood that the action of clearing the copied content is not limitedto the foregoing action.

The foregoing embodiments describe a method for implementing copyingthrough a single touch operation, and a method for implementing copyingthrough a plurality of touch operations is described below based on theforegoing embodiments. Referring to FIG. 26, another embodiment of acopying and pasting method in this application includes the followingsteps.

Step 2601. Obtain a first to-be-recognized fingerprint.

In this embodiment, the touch operation includes a first tappingoperation and a second tapping operation. When the first tappingoperation acting on a touchscreen is detected, a fingerprint used forthe first tapping operation is used as the first to-be-recognizedfingerprint.

Step 2602. Select, if the first to-be-recognized fingerprint is a firstpreset fingerprint, a first tapping location from an area in which thefirst tapping operation is in contact with the touchscreen.

Step 2603. Obtain the second tapping operation after it is detected thatthe first tapping operation ends.

Step 2604. Select, when a fingerprint used for the second tappingoperation is the first preset fingerprint, a second tapping locationfrom an area in which the second tapping operation is in contact withthe touchscreen.

Specifically, user equipment may select a central location as a tappinglocation from an area in which a finger is in contact with thetouchscreen. Certainly, a location close to a center or another locationmay alternatively be selected as a tapping location according to apreset rule.

In another embodiment, alternatively, when a fingerprint used for thesecond tapping operation is another preset fingerprint different fromthe first preset fingerprint, a second tapping location may be selectedfrom an area in which the second tapping operation is in contact withthe touchscreen.

Step 2605. Select, if content corresponding to the first tappinglocation and content corresponding to the second tapping location bothbelong to the to-be-processed interface, copied content from theto-be-processed interface based on the first tapping location and thesecond tapping location.

It may be understood that, the “to-be-processed interface” is aninterface on which content may be copied (which usually has a word, apicture, or other information that needs to be copied, for example, aninterface of a web page on which a word is displayed) other than asimilar blank text box or an interface on which there is no copyablecontent. According to this method, if the second tapping is notperformed on the to-be-processed interface, copying is not started, toprevent a misoperation. For example, when a user browses a web page byusing a mobile phone, if the user first taps a location in the web pagethrough the first tapping operation, and then taps a blank text box thatis at a bottom area of the web page and that is used to make a comment,in this scenario, the user taps the text box to actually make a comment,and does not intend to start copying. In this embodiment, because theblank text box has no copyable content, and is not the to-be-processedinterface, copying is not started either, thereby better conforming to ause habit of the user and preventing a misoperation.

It should be noted that, if a fingerprint used for a tapping operationis the first preset fingerprint, the user equipment selects copiedcontent based on the tapping operation; or if a fingerprint used for atapping operation is not the first preset fingerprint, content selectedthrough the tapping operation is not used as copied content.

Step 2606. Obtain a pasting instruction.

Step 2607. Paste the copied content into a target area according to thepasting instruction.

The target area is a pastable area. Step 2606 and step 2607 are similarto step 803 and step 804 in the embodiment or optional embodiment shownin FIG. 8.

In this embodiment, a copying function is directly triggered through afingerprint, and steps for copying and pasting can be reduced, therebyimproving copying and pasting efficiency. In addition, the copiedcontent is selected through a plurality of touch operations, therebyimproving flexibility of performing copying and pasting by using afingerprint.

In an optional embodiment, fingerprints used for the first tappingoperation, the second tapping operation, and a pasting operation are asame fingerprint, the first tapping operation and the second tappingoperation act on a non-pastable area, and the pasting operation acts ona pastable area. In this way, a touch operation in the non-pastable areamay implement the copying function, and a touch operation in thepastable area may implement a pasting function.

In another optional embodiment, both the fingerprint used for the firsttapping operation and the fingerprint used for the second tappingoperation are the first preset fingerprint, and a fingerprint used for apasting operation is a second preset fingerprint, and the first presetfingerprint is different from the second preset fingerprint. In thisway, different fingerprints need to be used for the copying operationand the pasting operation, thereby further improving flexibility ofperforming copying and pasting by using a fingerprint.

In an optional embodiment, a preset fingerprint used to perform matchingwith the fingerprint used for the first tapping operation (for example,the first preset fingerprint in step 2602), a preset fingerprint used toperform matching with the fingerprint used for the second tappingoperation (for example, the first preset fingerprint in step 2604), andthe aforementioned pasting fingerprint used for the pasting operationmay be all the same or all different, or two thereof are the same andare different from another one.

In another optional embodiment, step 2605 specifically includes: usingtext information corresponding to the first tapping location as a startpoint, using text information corresponding to the second tappinglocation as an end point, and selecting text information from the startpoint to the end point as the copied content.

For example, a word selected through the first tapping operation is“very”, a word selected through the second tapping operation is “sun”,text information from “very” to “sun” is selected in an order of wordsin a document, and the selected text information is used as the copiedcontent.

In another optional embodiment, step 2605 includes: generating, based oninterface coordinates corresponding to the first tapping location andinterface coordinates corresponding to the second tapping location, ascreenshot area in the to-be-processed interface according to a presetarea generation rule, and using a pattern in the screenshot area as thecopied content.

For example, a location 1 is first selected in a to-be-processedinterface by using a finger, and then a location 2 is selected in theto-be-processed interface, as shown in FIG. 27. Then, a rectangle isconstructed by using the location 1 and the location 2 as diagonalvertexes, the rectangle is a screenshot area, and the user equipment mayselect an image in the to-be-processed interface as copied content basedon the rectangle, as shown in FIG. 28. Then, a selected pattern ispasted into a target area. Alternatively, another pattern such as arhombus, a circle, or an ellipse is constructed based on the location 1and the location 2.

Further, in an optional embodiment, step 2607 includes: using a touchlocation of one more touch operation acting on the touchscreen as onemore touch location; and pasting, according to the pasting instruction,the copied content after content corresponding to the one more touchlocation. For a specific pasting operation, refer to the embodiment oroptional embodiment shown in FIG. 8.

Further, in another optional embodiment, step 2607 includes: pasting,when the target area is an image editing area, the copied content to alayer located on the top of the image editing area. For a specificpasting operation, refer to the embodiment and optional embodiment shownin FIG. 8.

Optionally, after step 2607, the foregoing method further includes:using the copied content as to-be-sent content when the target area is adialog box of a communication application program.

In another optional embodiment, step 2605 includes: using, when contentcorresponding to the first tapping location is a first thumbnail andcontent corresponding to the second tapping location is a secondthumbnail, an original picture corresponding to the first thumbnail andan original picture corresponding to the second thumbnail as the copiedcontent.

Specifically, the user equipment may load the original picturecorresponding to the first thumbnail to a memory after the firstthumbnail is selected, and then load the original picture correspondingto the second thumbnail to the memory after the second thumbnail isselected. During picture pasting, the original pictures corresponding tothe foregoing thumbnails are pasted into the target area.

In another optional embodiment, step 2605 includes: using, when contentcorresponding to the first tapping location is a first picture andcontent corresponding to the second tapping location is a secondpicture, the first picture and the second picture as the copied content.It may be understood that, the user equipment may further select morethumbnails or pictures as the copied content based on a subsequenttapping operation in the non-pastable area.

For example, as shown in FIG. 29, a thumbnail of a smiling face patternand a thumbnail of a moon pattern are selected from a location 1 and alocation 2 respectively by using a thumb. When the thumb presses a textinput area (a location 1′ shown in FIG. 30) on a notebook applicationinterface, the user equipment may determine that the location 1′ belongsto a pastable area, and paste original pictures (that is, the smilingface pattern and the moon pattern) corresponding to the thumbnails intoa target area, as shown in FIG. 31.

The foregoing embodiments describe a method for selecting copied contentthrough two tapping operations, and a method for selecting copiedcontent through a plurality of slide operations is described below basedon the foregoing embodiments. Referring to FIG. 32, another embodimentof a copying and pasting method provided in this application includesthe following steps.

Step 3201. Obtain a first to-be-recognized fingerprint.

Step 3202. Use, if the first to-be-recognized fingerprint is a firstpreset fingerprint, content corresponding to a plurality of slideoperations as copied content.

In this embodiment, a touch operation includes a plurality of slideoperations. The first to-be-recognized fingerprint includes fingerprintsused for the plurality of slide operations (that is, there may aplurality of obtained first to-be-recognized fingerprints). When each ofthe fingerprints used for the plurality of slide operations is the firstpreset fingerprint, the content corresponding to the plurality of slideoperations is used as the copied content (that is, there may also be aplurality of pieces of copied content). After the copied content isselected, the copied content may be displayed to be in a selected state.For example, the copied content and an area excluding the copied contentare differentiated in background colors of different gray scales.

Step 3203. Obtain a pasting instruction.

Step 3204. Paste the copied content into a target area according to thepasting instruction.

The target area is a pastable area. Step 3203 and step 3204 are similarto step 803 and step 804 in the embodiment or optional embodiment shownin FIG. 8.

In this embodiment, the copied content is selected from theto-be-processed interface through a plurality of touch operations. Afterone touch ends, content corresponding to the touch is used as firstcopied content. After the second touch ends, content corresponding tothe second touch operation is used as second copied content. Therefore,copied content may be selected in a non-pastable area based on theplurality of touch operations. It can be learned that, content of aquite long length can be conveniently and quickly copied in thisembodiment. Correspondingly, during pasting, all copied content may bepasted at a time; or a user may be enabled in an interactive manner toselect some content that needs to be pasted for pasting. For example, instep S3203, an option including all the copied content is triggered (forexample, touch and hold, or a particular fingerprint) to pop up, and theuser selects one piece of all the copied content and then obtain thepasting instruction. Correspondingly, in step S3204, the copied contentselected by the user is pasted according to the pasting instruction.

In an optional embodiment, the fingerprints used for the plurality oftouch operations and a fingerprint used for a pasting operation are asame fingerprint, and the plurality of touch operations act on anon-pastable area, and the pasting operation acts on a pastable area. Inthis way, a touch operation in the non-pastable area may implement acopying function, and a touch operation in the pastable area mayimplement a pasting function.

In another optional embodiment, the fingerprints used for the pluralityof touch operations are the first preset fingerprint, and a fingerprintused for the pasting operation is a second preset fingerprint, and thefirst preset fingerprint is different from the second presetfingerprint. In this way, different fingerprints need to be used for acopying operation and a pasting operation, thereby further improvingflexibility of performing copying and pasting by using a fingerprint.

In another optional embodiment, alternatively, a plurality of presetfingerprints that may trigger copying operations may be set, and thencopying operations are triggered through different fingerprints. Theplurality of preset fingerprints that may trigger copying operations maybe all different from a pasting fingerprint used for a pastingoperation, or one or more of the plurality of preset fingerprints may bethe same as a pasting fingerprint.

In another optional embodiment, step 3202 specifically includes: usingcontent corresponding to a touch track of the plurality of slideoperations as the copied content.

For details, refer to FIG. 33. FIG. 33 is a schematic diagram of a mailinterface. A fingerprint of a thumb is a first preset fingerprint, and afingerprint of an index finger is a second preset fingerprint. Userequipment detects a slide operation of the thumb in a non-pastable area,and one line of words is selected through each slide operation. First,“very quietly . . . sky” is selected through four slide operations, thenupward slide is performed by using another finger, and after the anotherfinger slides to another word part, “the . . . sun” is selected by usingthe thumb, as shown in FIG. 34. Then, switching to a notebookapplication interface is performed. When a pastable area of the notebookapplication interface is tapped by using the index finger, the userequipment may determine that an area corresponding to the tappingoperation is a pastable area and that a fingerprint used for the tappingoperation is the fingerprint of the index finger; and read “very quietly. . . sun” from a memory. After “very quietly . . . sun” is loaded to atapping location, a display effect generated after pasting is completedis shown in FIG. 35.

In an optional embodiment, step 3202 specifically includes: using, whena touch track of the plurality of slide operations forms a closed areaand the closed area includes a picture, the picture within the closedarea as the copied content.

Specifically, the user equipment may record slide operations 1, 2, and3, as shown in FIG. 36. The user equipment determines whether the touchtrack of the plurality of slide operations forms a closed area;determines, if a closed area is formed, whether the closed area includesa picture; and uses, if the closed area includes a picture, the picturewithin the closed area as the copied content, as shown in FIG. 37. Whena fingerprint used for a slide operation is not the first presetfingerprint, the user equipment does not respond to the slide operation.

Therefore, it can be learned that, a cross-page copying function may beperformed based on touch operations of different fingers in thisembodiment, thereby improving flexibility of performing copying andpasting by using a fingerprint.

The foregoing embodiments describe a method for performing copying byusing a fingerprint and performing pasting by using another fingerprint,and based on the foregoing embodiments, a method for performing copyingby using a fingerprint and performing pasting in a regular manner isdescribed in the following embodiments. Referring to FIG. 38, anotherembodiment of a copying and pasting method provided in this applicationincludes the following steps.

Step 3801. Obtain a first to-be-recognized fingerprint.

Step 3802. Select, if the first to-be-recognized fingerprint is a firstpreset fingerprint, copied content from a to-be-processed interfacebased on a touch operation acting on a touchscreen.

For step 3801 and step 3802, refer to related descriptions in theforegoing embodiments, for example, step 801 and step 802 in theembodiment or optional embodiment shown in FIG. 8.

Step 3803. Detect, after the touch operation ends, one more touchoperation acting on the touchscreen.

Step 3804. Display, when a time length for which the one more touchoperation has been in contact with the touchscreen reaches a preset timelength, an operation menu including a pasting option.

Step 3805. Obtain a pasting instruction when the pasting option isselected.

Step 3806. Paste the copied content into a target area according to thepasting instruction. The target area is a pastable area.

In this embodiment, a fingerprint used for a copying operation is thefirst preset fingerprint, and a fingerprint used for a pasting operationis not the first preset fingerprint. For example, the first presetfingerprint is a fingerprint of a thumb. After a user touches andselects copied content by using the thumb, the user performs touch andhold through an index finger. When a time length of pressing reaches thepreset time length, user equipment may display the operation menuincluding the pasting option. When a finger taps the pasting option, theuser equipment determines that the pasting option is selected, andobtains the pasting instruction.

Based on this embodiment, the copying function may be directly triggeredthrough a fingerprint, the operation menu does not need to be invoked,and the function option of “copying” does not need to be selectedeither. Therefore, it can be learned that, based on this application,the operation steps during copying and pasting are reduced, and thecopying and pasting efficiency can be improved. Second, content iscopied by using a fingerprint, and pasting is performed in a regularmanner, thereby improving flexibility of solution implementation.

The foregoing embodiments describe a method for performing copying byusing a fingerprint and performing pasting by using another fingerprint,and a method for performing copying by using a fingerprint andperforming pasting in a regular manner, and a method for performingcopying in a regular manner and performing pasting by using afingerprint is described below based on the foregoing embodiments.Referring to FIG. 39, another embodiment of a copying and pasting methodprovided in this application includes the following steps.

Step 3901. Select content based on a first touch operation acting on atouchscreen, and display a copying option.

In this embodiment, a fingerprint used for the first touch operation isnot a preset fingerprint.

In an optional embodiment, when detecting a touch and hold operation,user equipment displays, at pressing locations, information head andtail identifiers, and an operation menu including the copying option,and displays selected content to be in a selected state. When theinformation head and tail identifiers are moved, the user equipment mayincrease or reduce the selected content based on movement information ofthe information head and tail identifiers.

Step 3902. Use the selected content as copied content when the copyingoption is selected.

Step 3903. Detect a second touch operation acting on a target area, andobtain a fingerprint used for the second touch operation.

Step 3904. Obtain a pasting instruction when the fingerprint used forthe second touch operation is the preset fingerprint.

Step 3905. Paste the copied content into a target area according to thepasting instruction.

The target area is a pastable area. For example, a preset fingerprintcorresponding to a pasting operation is a fingerprint of a middlefinger. When a user slides and selects content on the touchscreen byusing an index finger, and touch and hold is performed by using theindex finger, the selected content is used as copied content. Then, whenthe user performs a touch operation on the touchscreen by using a middlefinger, if the user equipment detects that the touch operation isperformed in the target area, and a fingerprint used for the touchoperation is the fingerprint of the middle finger, the copied content ispasted into the target area.

In this embodiment, a pasting function may be implemented through afingerprint after the content is copied. Compared with the prior art, astep of invoking a pasting option and selecting, by a user, a pastingoption is omitted, thereby increasing a pasting speed.

In an optional embodiment, before step 3902, the foregoing methodfurther includes: displaying a cancelation option after the content isselected based on the touch operation acting on the touchscreen; andclearing the copied content when the cancelation option is selected.

Specifically, the cancelation option may be displayed in the operationmenu. For example, the operation menu includes options such as copying,cancelation, and editing. The cancelation option may alternatively bedisplayed as an independent icon. For example, the icon is displayed asx, and is disposed at a lower right corner of the selected content.

In another optional embodiment, in step 3901, the displaying a copyingoption specifically includes: awakening a fingerprint sensor when anoperation area of the first touch operation is an interface of a presetapplication run on a foreground; obtaining, by using the fingerprintsensor, the fingerprint used for the first touch operation; anddisplaying the copying option when the fingerprint used for the firsttouch operation is not the preset fingerprint. The preset applicationprogram is an application program having a copyable object, for example,a document application, an SMS message, or a web page. Based on thisimplementation, a content copying method is provided for a case in whicha fingerprint used for a touch operation is not the preset fingerprint.This can avoid power waste resulting from unintended awaking of thefingerprint sensor. It may be understood that, after having beenawakened for a period of time, the fingerprint sensor may automaticallyenter a standby state, to reduce energy consumption.

In another optional embodiment, in step 3903, the obtaining afingerprint used for the second touch operation specifically includes:awakening the fingerprint sensor when the target area is the interfaceof the preset application run on the foreground; and obtaining, by usingthe fingerprint sensor, the fingerprint used for the second touchoperation. The preset application program is an application programhaving a copyable object, for example, a document application, an SMSmessage, or a web page. Only when the preset application program that isbeing run is touched, the fingerprint sensor is awakened to obtain afingerprint. In this way, not only start of the fingerprint sensor canbe prevented when the application program is not run, but also triggerof the copying function can be prevented when the user plays a game orwatches a video, thereby avoiding power waste resulting from unintendedawaking of the fingerprint sensor.

The foregoing embodiments describe a method for detecting a touchoperation by using a touchscreen to implement copying and pasting, and amethod for detecting a fingerprint by using a fingerprint sensor toimplement copying and pasting is described below. Referring to FIG. 40,another embodiment of a copying and pasting method provided in thisapplication includes the following steps.

Step 4001. Obtain a first to-be-recognized fingerprint.

Step 4002. Select, if the first to-be-recognized fingerprint is a firstpreset fingerprint, copied content from a to-be-processed interfacebased on an operation acting on a fingerprint sensor.

The fingerprint sensor in this embodiment includes a fingerprintdetection unit, a fingerprint detection interface may be set through thefingerprint detection unit, and a size of the fingerprint detectioninterface is basically the same as that of a display screen. Thefingerprint sensor may recognize, based on a touch operation acting onthe fingerprint detection interface, a fingerprint acting on any pointon the fingerprint detection interface, and select copied content basedon a time length for which the fingerprint stays on the fingerprintdetection interface, a location of the fingerprint, or a track of thefingerprint. For a specific process, refer to a method for selectingcopied content based on a touch time length, a touch location, or atouch track in the foregoing embodiments.

Step 4003. Paste the copied content into a target area based on one moreoperation acting on the fingerprint sensor.

The target area is a pastable area. When one more operation acting onthe fingerprint sensor is detected, and the operation acts on the targetarea, the copied content is pasted into the target area.

In this embodiment, user equipment detects a fingerprint through thefingerprint sensor, and implements a copying and pasting function basedon the fingerprint. This provides another copying and pasting method andimproves flexibility of the solution embodiment.

In each of the foregoing embodiments, a fingerprint needs to be detectedthrough the fingerprint sensor, and then quick copying and pasting isimplemented through the fingerprint. There is a particular limitationwhen the copying and pasting method is implemented. Based on theforegoing embodiments, a shortcut for a copying and pasting function isprovided below, so that a quick copying and pasting function can beimplemented without capturing a fingerprint. Referring to FIG. 41,another embodiment of a copying and pasting method provided in thisapplication includes the following steps.

Step 4101. Enable a shortcut copying and pasting function.

In this embodiment, the shortcut copying and pasting function is presetin a system of user equipment. Specifically, the shortcut copying andpasting function is set under system settings, and when the shortcutcopying and pasting function is set to be in an enabled state, the userequipment enables the shortcut copying and pasting function.Alternatively, the shortcut copying and pasting function is set in afloating menu on the top of an operation interface, and when theshortcut copying and pasting function is selected, the shortcut copyingand pasting function is enabled.

Step 4102. Select content from a to-be-processed interface based on afirst touch operation acting on a touchscreen, and use the selectedcontent as copied content.

After the shortcut copying and pasting function is enabled, the userequipment may directly trigger a copying operation without detecting afingerprint and without performing touch and hold.

Step 4103. Paste the copied content into a target area based on a secondtouch operation acting on the touchscreen.

Specifically, the target area is a pastable area. When a touch operationacting on the target area is detected, a pasting instruction isobtained, and the copied content is pasted into the target areaaccording to the pasting instruction.

In this embodiment, after the shortcut copying and pasting function isenabled, the user equipment may directly select content as the copiedcontent in response to the touch operation, and then paste the copiedcontent into the target area in the pastable area. Compared with theprior art, this saves processes of displaying and selecting a copyingoption and a pasting option during copying and pasting, can effectivelyincrease a copying and pasting speed, and has better implementationflexibility.

It may be understood that, in the foregoing embodiment, the “usedfingerprint” is a “fingerprint of a finger used by a user for anoperation”.

Based on the foregoing embodiments, this embodiment provides anothermethod for performing quick copying and/or quick pasting by using afingerprint. In this embodiment, a conventional sensor not integratedtogether with a screen (for example, a fingerprint sensor in iPhone 6 orMate 9) is still used as a fingerprint sensor. In this case, touch andfingerprint recognition may be respectively completed based on twofingers. Details are as follows:

In step 701 in the foregoing embodiments, the fingerprint sensor may bepressed and held by a finger A, to input a fingerprint. Moreover (or“later”), the screen may be touched by using another finger B, tocomplete various operations (for example, selection of copied content).

In step 702, if an instruction of the finger A is the first presetfingerprint, the copied content is selected from the to-be-processedinterface based on a touch operation of the finger B acting on thetouchscreen. Moreover, a final operation is completed through step 703and step 704.

For implementation of each step, refer to the implementation method inthe foregoing embodiments. Details are not described herein again.

In this embodiment, quick copying and/or pasting can be implementedwithout improving hardware, thereby reducing costs.

Based on the foregoing embodiments, this embodiment provides anothermethod for performing quick copying and/or quick pasting by using afingerprint. In this embodiment, the fingerprint sensor may be afingerprint sensor not integrated together with an electronic device atdelivery of the electronic device, that is, a fingerprint sensor used asan accessory of the electronic device. For example, the fingerprintsensor may be individually made into an independent hardware device, andthen connected to an existing electronic device (for example, acomputer, a notebook computer, or a mobile phone) in a wireless or wiredmanner. Certainly, the fingerprint sensor may alternatively beintegrated into some existing peripherals (for example, a keyboard and amouse).

In an example in which the fingerprint sensor is integrated into amouse, a user may perform quick copying and/or pasting by using themouse having the fingerprint sensor. For example, the fingerprint sensormay be disposed at a location of a left button of the mouse. When theuser presses and holds the left button, a fingerprint is recognized. Ifthe fingerprint is the same as a preset fingerprint, selected content iscopied (selection may still be performed in an existing manner ofpressing and holding the left button and moving the mouse), and then theleft button is released to complete copying. Pasting may also beperformed based on a fingerprint or in a regular manner. For details,refer to the foregoing embodiments. Details are not described hereinagain.

In this embodiment, even if the electronic device has no fingerprintsensor, quick copying and/or pasting may still be implemented through anexternal fingerprint sensor.

The copying and pasting method provided in this application is describedabove, and a data processing apparatus provided in this application isdescribed below. The data processing apparatus has a function ofimplementing the copying and pasting method according to any embodimentshown in FIG. 7 to FIG. 38, or the embodiment shown in FIG. 40 or FIG.41.

Referring to FIG. 42, an embodiment of a data processing apparatus 4200includes:

a fingerprint obtaining module 4201, configured to obtain a firstto-be-recognized fingerprint;

a selection module 4202, configured to select, if the firstto-be-recognized fingerprint is a first preset fingerprint, copiedcontent from a to-be-processed interface based on a touch operationacting on a touchscreen;

a pasting instruction obtaining module 4203, configured to obtain apasting instruction; and

a pasting module 4204, configured to paste the copied content into atarget area according to the pasting instruction, where the target areais a pastable area.

The fingerprint obtaining module 4201 may be specifically a fingerprintsensor. For details, refer to the description of the fingerprint sensorin the foregoing embodiments.

In some possible embodiments, the fingerprint obtaining module 4201 isspecifically configured to obtain, when a touch operation acting on thetouchscreen is detected, a fingerprint used for the touch operation; anduse the fingerprint used for the touch operation as the firstto-be-recognized fingerprint.

In some other possible embodiments, the fingerprint obtaining module4201 is specifically configured to detect a touch operation acting onthe touchscreen; and obtain, when an operation area of the touchoperation is an interface of a preset application program run on aforeground, a fingerprint used for the touch operation, and use thefingerprint used for the touch operation as the first to-be-recognizedfingerprint.

In some possible embodiments, the selection module 4202 is specificallyconfigured to select the copied content from the to-be-processedinterface based on a touch track, on the touchscreen, of the touchoperation acting on the touchscreen.

Further, in some other possible embodiments, the selection module 4202is specifically configured to use, when content corresponding to thetouch operation acting on the touchscreen is a multimedia file, themultimedia file as the copied content.

Referring to FIG. 43, in some possible embodiments, the selection module4202 includes:

a location selection unit 4301, configured to select, when the touchoperation includes a first tapping operation and a second tappingoperation, a first tapping location from an area in which the firsttapping operation is in contact with the touchscreen, where the firstto-be-recognized fingerprint is a fingerprint used for the first tappingoperation, where

the location selection unit 4301 is further configured to obtain thesecond tapping operation after it is detected that the first tappingoperation ends; and select, when a fingerprint used for the secondtapping operation is the first preset fingerprint, a second tappinglocation from an area in which the second tapping operation is incontact with the touchscreen; and

a content selection unit 4302, configured to select, if contentcorresponding to the first tapping location and content corresponding tothe second tapping location both belong to the to-be-processedinterface, the copied content from the to-be-processed interface basedon the first tapping location and the second tapping location.

In some possible embodiments, the content selection unit 4302 isspecifically configured to use text information corresponding to thefirst tapping location as a start point, use text informationcorresponding to the second tapping location as an end point, and selecttext information from the start point to the end point as the copiedcontent.

Further, in some other possible embodiments, the content selection unit4302 is configured to generate, based on interface coordinatescorresponding to the first tapping location and interface coordinatescorresponding to the second tapping location, a screenshot area in theto-be-processed interface according to a preset area generation rule,and use a pattern in the screenshot area as the copied content.

In some possible embodiments, the selection module 4202 is specificallyconfigured to use, when the touch operation includes a plurality ofslide operations and the plurality of slide operations act on anon-pastable area of the to-be-processed interface, contentcorresponding to the plurality of slide operations in the non-pastablearea as the copied content.

In some other possible embodiments, the pasting instruction obtainingmodule 4203 is specifically configured to detect, after the touchoperation ends, one more touch operation acting on the target area;display, when a time length for which the one more touch operation hasbeen in contact with the touchscreen reaches a preset time length, anoperation menu including a pasting option; and obtain the pastinginstruction when the pasting option is selected.

In some other possible embodiments, the pasting instruction obtainingmodule 4203 is specifically configured to detect, after the touchoperation ends, one more touch operation acting on the target area; andobtain the pasting instruction when a fingerprint used for the one moretouch operation is the second preset fingerprint.

In some possible embodiments, the data processing apparatus 4200 furtherincludes a clearing module, configured to clear the copied content whena slide operation is detected in a non-pastable area of theto-be-processed interface.

In some other possible embodiments, the data processing apparatus 4200further includes:

a clearing module, configured to clear the copied content when it isdetected that a speed at which a touch object moves to a side of thescreen is greater than a preset speed; or

a clearing module, configured to clear the copied content when adouble-tapping operation acting on an editable area of theto-be-processed interface is detected.

Referring to FIG. 44, this application further provides a dataprocessing apparatus that can implement the copying and pasting methodin the embodiment shown in FIG. 39. An embodiment of the data processingapparatus 4400 includes:

a display module 4401, configured to select content based on a firsttouch operation acting on a touchscreen, and display a copying option,where a fingerprint used for the first touch operation is not a presetfingerprint;

a selection module 4402, configured to use the selected content ascopied content when the copying option is selected;

a detection module 4403, configured to detect a second touch operationacting on a target area;

a fingerprint obtaining module 4404, configured to obtain a fingerprintused for the second touch operation; and

a pasting module 4405, configured to paste the copied content into thetarget area when the second touch operation acting on the target area isdetected and the fingerprint used for the second touch operation is apreset fingerprint, where the target area is a pastable area.

In some embodiments, the display module 4401 is further configured todisplay a cancelation option after the content is selected based on thefirst touch operation acting on the touchscreen. The data processingapparatus 4400 further includes a clearing module, configured to clearthe copied content when the cancelation option is selected.

In some other embodiments, the detection module 4403 is furtherconfigured to obtain, after the selection module 4402 selects thecontent based on the first touch operation acting on the touchscreen andwhen an operation area of the first touch operation is an interface of apreset application run on a foreground, the fingerprint used for thefirst touch operation; and

the display module 4401 is specifically configured to display thecopying option when the fingerprint used for the first touch operationis not the preset fingerprint.

In some other embodiments, the detection module 4403 is specificallyconfigured to awaken, after detecting the second touch operation actingon the target area, the fingerprint obtaining module when the targetarea is the interface of the preset application run on the foreground;and

the fingerprint obtaining module 4404 is specifically configured toobtain the fingerprint used for the second touch operation.

The foregoing embodiments may be implemented by a combination ofsoftware (various programs run on a CPU, such as an operating system, adriver, and an application program) and hardware (for example, a CPU ora memory). When software is used to implement the embodiments, all orsome of the embodiments may be implemented in a form of a computerprogram product.

Based on the foregoing embodiments, an embodiment of this applicationdiscloses an electronic device (for example, various electronic mobiledevices such as a mobile phone, a notebook computer, and a computer),the electronic device has a touchscreen-integrated fingerprint sensor orhas a conventional fingerprint sensor not integrated into a touchscreen,and the electronic device further includes a CPU and a memory, where thememory is configured to store a software instruction required forperforming the method in the foregoing embodiments, and the CPU isconfigured to read the software instruction and perform the method inthe foregoing embodiments.

Based on the foregoing embodiments, an embodiment of this applicationdiscloses a computer program product, including one or more computerinstructions. When the computer program instructions are loaded andexecuted on a computer, all or some of the procedures or functionsaccording to the embodiments of the present invention are generated. Thecomputer may be a general-purpose computer, a dedicated computer, acomputer network, or another programmable apparatus. The computerinstructions may be stored in a computer readable storage medium or maybe transmitted from a computer readable storage medium to anothercomputer readable storage medium. For example, the computer instructionsmay be transmitted from a website, computer, server, or data center toanother website, computer, server, or data center in a wired (forexample, a coaxial cable, an optical fiber, or a digital subscriber line(DSL)) or wireless (for example, infrared, radio, and microwave) manner.The computer readable storage medium may be any usable medium accessibleby a computer, or a data storage device, such as a server or a datacenter, integrating one or more usable media. The usable medium may be amagnetic medium (for example, a floppy disk, a hard disk, or a magnetictape), an optical medium (for example, a DVD), a semiconductor medium(for example, a solid-state drive (Solid State Disk, SSD)), or the like.

Based on the foregoing embodiments, an embodiment of this applicationdiscloses a computer readable storage medium storing a softwareinstruction required by a CPU to run the method in the foregoingembodiments.

The foregoing embodiments are merely intended for describing thetechnical solutions of this application, but not for limiting thisapplication. Although this application is described in detail withreference to the foregoing embodiments, persons of ordinary skill in theart should understand that they may still make modifications to thetechnical solutions described in the foregoing embodiments or makeequivalent replacements to some technical features thereof, withoutdeparting from the scope of the technical solutions of the embodimentsof this application.

What is claimed is:
 1. A copying and pasting method, applied to a userequipment, the method comprising: obtaining a first to-be-recognizedfingerprint related to a touch operation; in response to determining thefirst to-be-recognized fingerprint is a first preset fingerprint,copying a target content from a touchscreen without invoking a menucomprising a copying option; and in response to obtaining a pastinginstruction, pasting the copied target content into a target area of thetouchscreen.
 2. The method according to claim 1, wherein obtaining thefirst to-be-recognized fingerprint related to a touch operationcomprises: in accordance with determining the touch operation isdetected, obtaining, by using a fingerprint sensor, a fingerprint usedfor the touch operation; and using the fingerprint used for the touchoperation as the first to-be-recognized fingerprint.
 3. The methodaccording to claim 1, wherein obtaining the first to-be-recognizedfingerprint related to a touch operation comprises: detecting the touchoperation acting on the touchscreen; determining that an operation areaof the touch operation is an interface of a preset application programor is an preset area of the touchscreen; in accordance with determiningthe operation area is the interface or the preset area, awakening afingerprint sensor; and obtaining, by using the fingerprint sensor, afingerprint used for the touch operation, and using the fingerprint usedfor the touch operation as the first to-be-recognized fingerprint. 4.The method according to claim 1, wherein the touch operation comprises afirst tapping operation and a second tapping operation, and wherein inresponse to determining the first to-be-recognized fingerprint is thefirst preset fingerprint, copying a target content from a touchscreenwithout invoking a menu comprising a copying option comprises: selectinga first tapping location from an area in which the first tappingoperation is in contact with the touchscreen; selecting a second tappinglocation from an area in which the second tapping operation is incontact with the touchscreen; copying the target content withoutinvoking a menu comprising a copying option, in accordance withdetermining a fingerprint used for the first tapping operation is thefirst preset fingerprint and a fingerprint used for the second tappingoperation is the first preset fingerprint, wherein the target content isa content between the first tapping location and the second tappinglocation.
 5. The method according to claim 1, wherein the touchoperation comprises a plurality of slide operations and using contentassociated with the plurality of slide operations as the target content.6. The method according to claim 1, wherein obtaining the pastinginstruction comprises: detecting, after the touch operation ends,another touch operation acting on the target area; determining a timelength for which the another touch operation has been in contact withthe touchscreen reaches a preset time length; in accordance withdetermining the time length reaches a preset time length, displaying anoperation menu comprising a pasting option; and obtaining the pastinginstruction when the pasting option is selected.
 7. The method accordingto claim 1, wherein obtaining the pasting instruction comprises:detecting, after the touch operation ends, another touch operationacting on the target area; and obtaining the pasting instruction whendetermining that a fingerprint used for the another touch operation is asecond preset fingerprint.
 8. A terminal, comprising: a touchscreen, aprocessor, a memory, and a fingerprint sensor, all of which areconnected by a bus, wherein the touchscreen is configured to detect atouch operation, wherein the fingerprint sensor is configured to detecta fingerprint corresponding to the touch operation, and wherein thememory is configured to store a processor-executable program whichcauses the processor to: obtain a first to-be-recognized fingerprintcorresponding to the touch operation; in response to determining thefirst to-be-recognized fingerprint is the first preset fingerprint, copya target content from a touchscreen without invoking a menu comprising acopying option; and in response to obtaining a pasting instruction,paste the copied target content into a target area of the touchscreen.9. The terminal according to claim 8, wherein the fingerprint sensor isdisposed below the touchscreen.
 10. The terminal according to claim 8,wherein the processor is further configured to: in accordance withdetermining the touch operation is detected, obtain, by using afingerprint sensor, a fingerprint used for the touch operation; and usethe fingerprint, which is used for the touch operation, as the firstto-be-recognized fingerprint.
 11. The terminal according to claim 8,wherein the processor is further configured to: detect the touchoperation acting on the touchscreen; determine that an operation area ofthe touch operation is an interface of a preset application program oris an preset area of the touchscreen; in accordance with determining theoperation area is the interface or the preset area, awaken a fingerprintsensor; and obtain, by using the fingerprint sensor, a fingerprint usedfor the touch operation, and using the fingerprint used for the touchoperation as the first to-be-recognized fingerprint.
 12. The terminalaccording to claim 8, wherein the touch operation comprises a firsttapping operation and a second tapping operation, and the processor isfurther configured to: select a first tapping location from an area inwhich the first tapping operation is in contact with the touchscreen;select a second tapping location from an area in which the secondtapping operation is in contact with the touchscreen; copy the targetcontent without invoking a menu comprising a copying option, inaccordance with determining a fingerprint used for the first tappingoperation is the first preset fingerprint and a fingerprint used for thesecond tapping operation is the first preset fingerprint, wherein thetarget content is a content between the first tapping location and thesecond tapping location.
 13. The terminal according to claim 8, whereinthe processor is further configured to: detect, after the touchoperation ends, another touch operation acting on the target area;determine a time length for which the another touch operation has beenin contact with the touchscreen reaches a preset time length; inaccordance with determining the time length reaches a preset timelength, display an operation menu comprising a pasting option; andobtain the pasting instruction when the pasting option is selected. 14.The terminal according to claim 8, wherein the processor is furtherconfigured to: detect, after the touch operation ends, another touchoperation acting on the target area; and obtain the pasting instructionwhen determining that a fingerprint used for the another touch operationis a second preset fingerprint.
 15. A non-transitory, computer readablemedium storing instructions, that, when executed by a processor,configure the processor to provide at least the following operations:obtaining a first to-be-recognized fingerprint related to a touchoperation; in response to determining the first to-be-recognizedfingerprint is the first preset fingerprint, copying a target contentfrom a touchscreen without invoking a menu comprising a copying option;and in response to obtaining a pasting instruction, pasting the copiedtarget content into a target area of the touchscreen.
 16. Thenon-transitory, computer readable medium according to claim 15, whereinthe processor is further configured to: in accordance with determiningthe touch operation is detected, obtain, by using a fingerprint sensor,a fingerprint used for the touch operation; and use the fingerprint,which is used for the touch operation, as the first to-be-recognizedfingerprint.
 17. The non-transitory, computer readable medium accordingto claim 15, wherein the processor is further configured to: detect thetouch operation acting on the touchscreen; determine that an operationarea of the touch operation is an interface of a preset applicationprogram or is an preset area of the touchscreen; in accordance withdetermining the operation area is the interface or the preset area,awaken a fingerprint sensor; and obtain, by using the fingerprintsensor, a fingerprint used for the touch operation, and using thefingerprint used for the touch operation as the first to-be-recognizedfingerprint.
 18. The non-transitory, computer readable medium accordingto claim 15, wherein the touch operation comprises a first tappingoperation and a second tapping operation, and wherein the processor isfurther configured to: select a first tapping location from an area inwhich the first tapping operation is in contact with the touchscreen;select a second tapping location from an area in which the secondtapping operation is in contact with the touchscreen; and copy thetarget content without invoking a menu comprising a copying option, inaccordance with determining a fingerprint used for the first tappingoperation is the first preset fingerprint and a fingerprint used for thesecond tapping operation is the first preset fingerprint, wherein thetarget content is a content between the first tapping location and thesecond tapping location.
 19. The non-transitory, computer readablemedium according to claim 15, wherein the processor is furtherconfigured to: detect, after the touch operation ends, another touchoperation acting on the target area; determine a time length for whichthe another touch operation has been in contact with the touchscreenreaches a preset time length; in accordance with determining the timelength reaches a preset time length, display an operation menucomprising a pasting option; and obtain the pasting instruction when thepasting option is selected.
 20. The non-transitory, computer readablemedium according to claim 15, wherein the processor is furtherconfigured to: detect, after the touch operation ends, another touchoperation acting on the target area; and obtain the pasting instructionwhen determining that a fingerprint used for the another touch operationis a second preset fingerprint.